//
//  XKMainTableController.m
//  XKJY
//
//  Created by xuyaguang on 2017/1/10.
//  Copyright © 2017年 xiaokang100. All rights reserved.
//

#import "XKMainTableController.h"

@interface XKMainTableController ()

@end

@implementation XKMainTableController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self setupMainUI];
    [self setupMainTableView];

}

- (UIStatusBarStyle)preferredStatusBarStyle {
    return UIStatusBarStyleLightContent;
}

#pragma mark - 设置主体UI
- (void)setupMainUI {
   
    self.view.backgroundColor = kBaseGrayColor; // 背景主体灰
    UIBarButtonItem *btn = [[UIBarButtonItem alloc] init];// 设置下一级页面的返回按钮
    btn.title = @"返回";
    self.navigationItem.backBarButtonItem = btn;
    
}


#pragma mark - 设置tableview
- (void)setupMainTableView {
    
    self.tableView.showsHorizontalScrollIndicator = NO;
    self.tableView.tableFooterView = [UIView new];
    self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
    self.tableView.rowHeight = UITableViewAutomaticDimension;
    self.tableView.estimatedRowHeight = 300;
    [self.tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:@"cell"];
}


#pragma mark - Table view data source
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
    return 0;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {

    return 0;
}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    
}

@end
